package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.service.ICarService;
import cn.wolfcode.crm.util.PermissionName;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("carInsurance")
public class CarInsurance {
    @Autowired
    private ICarService service;
    @RequestMapping("")
    private String index(){
        return "car/list";
    }
    @RequestMapping("view")
    @RequiresPermissions("carInsurance:view")
    @PermissionName("中转站")
    private String view(){
        return "carView/carView";
    }


}
